home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _8DDBA594CA1D4056B8250D61814F7B4B < prev    next >
Encoding:
Text File  |  2004-03-17  |  2.8 KB  |  123 lines

  1.  
  2. shader()
  3. {// >=gf3
  4.     cull("none")
  5.     sortweight("translucent14")
  6.     stream("color", 0)
  7.     Shaderquality(3)
  8.     pass()
  9.     {
  10.         PixelShader("FX_BLEND.psh")
  11.         tmu()
  12.         {
  13.             texture()
  14.             {
  15.                   Mapchannel(0)
  16.                 image(TEXTURE1)
  17.                 addressfunc("clamp", "clamp", "clamp")
  18.             }
  19.         }
  20.  
  21.         tmu()
  22.         {
  23.             TexGen("planar")
  24.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  25.             texture()
  26.             {
  27.                 Image(%colortexturesmall)
  28.                 addressfunc("clamp", "clamp", "clamp")
  29.             }
  30.         }
  31.  
  32.         tmu()
  33.         {
  34.             TexGen("world_position")
  35.             TexMtxDirPosScale(0.866025, 0.5, 0.0, 0, 0, 0, 0.000015, 0.00002, 0.000015)
  36.             TexMod("translate", "lin", 0, 0.02, 0, "lin", 0, 0.001, 0)
  37.             texture()
  38.             {
  39.                 Image(%cloudstexture)
  40.             }
  41.         }
  42.         blendfunc("src_alpha", "inv_src_alpha")
  43.         depthfunc("lequal", 0)
  44.  
  45.         depthbias(%zbias, %zsbias)
  46.     }
  47. }
  48.  
  49. shader()
  50. {// >=gf3
  51.     cull("none")
  52.     sortweight("translucent14")
  53.     stream("color", 0)
  54.  
  55.     Shaderquality(1)
  56.     pass()
  57.     {
  58.         PixelShader("FX_BLEND_LOW.psh")
  59.         tmu()
  60.         {
  61.             texture()
  62.             {
  63.                   Mapchannel(0)
  64.                 image(TEXTURE1)
  65.                 addressfunc("clamp", "clamp", "clamp")
  66.             }
  67.         }
  68.         tmu()
  69.         {
  70.             TexGen("planar")
  71.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  72.             texture()
  73.             {
  74.                 Image(%colortexturesmall)
  75.                 addressfunc("clamp", "clamp", "clamp")
  76.             }
  77.             colorop("arg2", "texture", "current", "current")
  78.             alphaop("mul", "texture", "current", "current")
  79.         }
  80.         blendfunc("src_alpha", "inv_src_alpha")
  81.         depthfunc("lequal", 0)
  82.         depthbias(%zbias, %zsbias)
  83.     }
  84. }
  85.  
  86.  
  87. shader()
  88. {//gf2
  89.     cull("none")
  90.     sortweight("translucent14")
  91.  
  92.     stream("color", 0)
  93.  
  94.     pass()
  95.     {
  96.         tmu()
  97.         {
  98.             texture()
  99.             {
  100.                 image(TEXTURE1)
  101.                 addressfunc("clamp", "clamp", "clamp")
  102.             }
  103.  
  104.             colorop("mul", "texture", "diffuse", "current")
  105.             alphaop("mul", "texture", "diffuse", "current")
  106.         }
  107.  
  108.         tmu()
  109.         {
  110.             colorop("mul", "current", "tfactor", "current")
  111.             alphaop("arg1", "current", "current", "current")
  112.         }
  113.  
  114.         Tfactor(%daycolor_r, %daycolor_g, %daycolor_b, 0)
  115.  
  116.         blendfunc("src_alpha", "inv_src_alpha")
  117.         depthfunc("lequal", 0)
  118.  
  119.         depthbias(%zbias, %zsbias)
  120.     }
  121. }
  122.  
  123.